package com.test.pattern.builder.demo1;

/**
 * @ClassName: Builder
 * @description: 抽象builder类
 * @author: Mr du
 * @create: 2024-02-17 18:14
 */
public abstract class Builder {

    //声明Bike类型的变量,并进行赋值
    protected Bike bike = new Bike();

    /**
     * 构建车架
     */
    public abstract void buildFrame();

    /**
     * 构建车身
     */
    public abstract void buildSeat();

    /**
     * 构建自行车
     * @return
     */
    public abstract Bike createBike();
}
